function [ m ]= get_stat_matrix( frames, decision )

m = zeros(max(frames(3, :))+1);

for i=0:max(frames(3, :))
    for j=0:max(frames(3, :))
        m(i+1,j+1) = sum((frames(3,:)==i) .* (decision(1,:)==j));
    end
end

end
